"""
根路由
"""

from typing import List

from fastapi import APIRouter

from api import (
    attendance_router,
    health_router,
    user_router,
)

api_urls: List[APIRouter] = [
    attendance_router,
    health_router,
    user_router,
]

api_version_url: APIRouter = APIRouter(prefix="/api/v1")
""" 接口版本路由 """

for api_url in api_urls:
    api_version_url.include_router(api_url)

root_url: APIRouter = APIRouter()
""" 根路由 """

# 在根路由下分配子路由
root_url.include_router(api_version_url)
